package fr.umlv.escape_ig.ship;

/**
 * This class is a singleton. It manages the user's score. The score is managed
 * by an int
 */
public class Score {
	static class InternScore {
		public static final Score instance = new Score();
	}

	private int score;

	/**
	 * Constructor
	 */
	public Score() {
		score = 0;
	}

	/**
	 * @return instance
	 */
	public static Score getInstance() {
		return InternScore.instance;
	}

	/**
	 * @return the score
	 */
	public int getScore() {
		return this.score;
	}

	/**
	 * Allows you to change the score.
	 * 
	 * @param score
	 */
	public void setScore(int score) {
		this.score += score;
	}
}
